const connections = require('../app/database')
class OrdersService {
  async getOrdersSerivce(userId) {
    try {
      const res = await connections.execute('SELECT * FROM `user-order` WHERE userId = ?', [userId])
      return res[0]
    } catch (error) {
      console.log(error);
    }
  }
}

module.exports = new OrdersService()